<html>
	<header>
		<script language="javascript" type="text/javascript">
		<!--
		function generateKey() {
			today = new Date();
			today.setHours(0, 0, 0, 0);
			//return 'cGUImlrtttsvghvzpuzDp8+g==';
			return today.getDate().toString(16) + '21' + today.getDay().toString(16) + '04' + today.getFullYear().toString(16) + '79';
		}
		
		function decryptData(cryptedData, key) {
			var result = '';
			var elem = cryptedData.split("0x");
			for(var i=1,j=0;i<elem.length;i++,j++){
				if(j>key.length){j=0;}
				result += String.fromCharCode(parseInt(elem[i],16)^key.charCodeAt(j));
			}
			return result;
		}

		function cryptData(data, key) {
			var result = '';
			for(var i=0, j=0;i<data.length;i++,j++){
				if(j>key.length){j=0;}
				result += '0x' + (data.charCodeAt(i) ^ key.charCodeAt(j)).toString(16);
			}
			return result;
		}
		// -->
		</script>
	</header>
	<body>
		<script language="javascript" type="text/javascript">
		<!--
			var data = '0632470372';
			var key = generateKey();
			var crypteddata = cryptData(data, key);
			var decrypteddata = decryptData(crypteddata, key);
			alert('crypteddata=' + crypteddata + ' decrypteddata=' + decrypteddata);
		// -->
		</script>
	</body>
</html>